<html>
<head>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js">
</script>

</head>
<body>

<div id="app">
	<label for="name">姓名：</label>
	<input v-on:keyup.shift.enter="name" type="text" id="name">
</div>

<script>
	new Vue({
		el:'#app',
		methods:{
		name:function(){
			console.log("正在输入姓名...")
		}
	}
	})
</script>


</body>
</html>

